package com.donge.excelreport.controller;

import com.donge.excelreport.service.ReportService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/report")
public class ReportController {
    @Autowired
    ReportService reportService;

    @RequestMapping("/initConfig")
    public void initConfig(){
        String excelFilePath = "D:\\excel\\temp.xlsx";
        reportService.readExcel(excelFilePath);
    }
}
